package com.example.demo.linkedlist;

import lombok.Getter;
import lombok.Setter;

/**
 * @description SinglyLinkedList使用的node节点
 * @auther lijiewei
 * @date 2021/8/16 17:16
 */
@Setter
@Getter
public class Node {

    private int data;
    private Node next;

    public Node() {
    }

    public Node(int data, Node next) {
        this.data = data;
        this.next = next;
    }
}
